<table class="table table-bordered table-hover">
    <thead>
      <tr class="info">
        <th colspan="3"></th>
        <th>Tên</th>
        <th>Ngày sinh</th>
        <th>Điện thoại</th>
        <th>Email</th>
      </tr>
    </thead>
    <tbody>
      <?php 
        foreach ($customers as $customer) 
        {
          echo '<tr>';
          echo '<td style="max-width:5px"><input type="checkbox" id="checkbox'.$customer['customer_id'].'"></td>';
          echo '<td style="max-width:15px"><a class="btn btn-small btn-info" title="Sửa" href="admin.php/user/edit/'.$customer['customer_id'].'"><i class="icon-edit icon-white"></i></a>';
          echo '<td style="max-width:15px"><a class="btn btn-small btn-danger" title="Xóa" id="delete'.$customer['customer_id'].'"><i class="icon-trash icon-white"></i></a>'; 
          echo '<td style="max-width:150px">'.$customer['name'].'</td>';
          echo '<td style="max-width:30px">'.$customer['birthday'].'</td>';
          echo '<td style="max-width:30px">'.$customer['phone'].'</td>';
          echo '<td >'.$customer['email'].'</td>';
        }
      ?>
    </tbody>
</table> 
<script type="text/javascript">
$("a[id^='delete']").click(function(){
      var checkedid = $(this).attr('id').substring(6)+',';
      var name = $("#filter-name").val();
      var birthday =  $("#filter-birthday").val();
      var phone =  $("#filter-phone").val();
      var email =  $("#filter-email").val();
      $.ajax({
        url: 'http://clickmobile.com/admin.php/user/filter',
        type:'POST',
        data: 'name='+name+'&birthday='+birthday+'&phone='+phone+'&email='+email+'&checkedid='+checkedid,
        asynce :true,
        success: function(result){
          $('#customer-list').html(result);
        }
      });  
      })    
</script>